<?php
  INCLUDE "F_CONX.php";

  $V_ANIO     = $HTTP_POST_VARS["V_ANIO"];
  $V_MES      = $HTTP_POST_VARS["V_MES"];
  $V_REPORTE  = $HTTP_POST_VARS["V_REPORTE"];
  $V_ZONA     = $HTTP_POST_VARS["V_ZONA"];
  $V_EDO      = $HTTP_POST_VARS["V_EDO"];

  $V_USU1     = $HTTP_POST_VARS["V_USU1"];
  $V_USU1a    = $HTTP_POST_VARS["V_USU1a"];
  $V_USU1b    = $HTTP_POST_VARS["V_USU1b"];
  $V_USU1c    = $HTTP_POST_VARS["V_USU1c"];
  $V_USU1d    = $HTTP_POST_VARS["V_USU1d"];
  $V_USU1e    = $HTTP_POST_VARS["V_USU1e"];
  $V_USU1f    = $HTTP_POST_VARS["V_USU1f"];
  $V_USUDAC   = $HTTP_POST_VARS["V_USUDAC"];
  $V_USU2     = $HTTP_POST_VARS["V_USU2"];
  $V_USU3     = $HTTP_POST_VARS["V_USU3"];
  $V_USU5     = $HTTP_POST_VARS["V_USU5"];
  $V_USU5a    = $HTTP_POST_VARS["V_USU5a"];
  $V_USU6     = $HTTP_POST_VARS["V_USU6"];
  $V_USU7     = $HTTP_POST_VARS["V_USU7"];
  $V_USU9     = $HTTP_POST_VARS["V_USU9"];
  $V_USU9M    = $HTTP_POST_VARS["V_USU9M"];
  $V_USU9CU   = $HTTP_POST_VARS["V_USU9CU"];
  $V_USU9N    = $HTTP_POST_VARS["V_USU9N"];
  $V_USUOM    = $HTTP_POST_VARS["V_USUOM"];
  $V_USUHM    = $HTTP_POST_VARS["V_USUHM"];
  $V_USUH_MC  = $HTTP_POST_VARS["V_USUHMC"];
  $V_USUHS    = $HTTP_POST_VARS["V_USUHS"];
  $V_USUH_SL  = $HTTP_POST_VARS["V_USUHSL"];
  $V_USUHT    = $HTTP_POST_VARS["V_USUHT"];
  $V_USUH_TL  = $HTTP_POST_VARS["V_USUHTL"];

  $V_VTA1     = $HTTP_POST_VARS["V_VTA1"];
  $V_VTA1a    = $HTTP_POST_VARS["V_VTA1a"];
  $V_VTA1b    = $HTTP_POST_VARS["V_VTA1b"];
  $V_VTA1c    = $HTTP_POST_VARS["V_VTA1c"];
  $V_VTA1d    = $HTTP_POST_VARS["V_VTA1d"];
  $V_VTA1e    = $HTTP_POST_VARS["V_VTA1e"];
  $V_VTA1f    = $HTTP_POST_VARS["V_VTA1f"];
  $V_VTADAC   = $HTTP_POST_VARS["V_VTADAC"];
  $V_VTA2     = $HTTP_POST_VARS["V_VTA2"];
  $V_VTA3     = $HTTP_POST_VARS["V_VTA3"];
  $V_VTA5     = $HTTP_POST_VARS["V_VTA5"];
  $V_VTA5a    = $HTTP_POST_VARS["V_VTA5a"];
  $V_VTA6     = $HTTP_POST_VARS["V_VTA6"];
  $V_VTA7     = $HTTP_POST_VARS["V_VTA7"];
  $V_VTA9     = $HTTP_POST_VARS["V_VTA9"];
  $V_VTA9M    = $HTTP_POST_VARS["V_VTA9M"];
  $V_VTA9CU   = $HTTP_POST_VARS["V_VTA9CU"];
  $V_VTA9N    = $HTTP_POST_VARS["V_VTA9N"];
  $V_VTAOM    = $HTTP_POST_VARS["V_VTAOM"];
  $V_VTAHM    = $HTTP_POST_VARS["V_VTAHM"];
  $V_VTAH_MC  = $HTTP_POST_VARS["V_VTAHMC"];
  $V_VTAHS    = $HTTP_POST_VARS["V_VTAHS"];
  $V_VTAH_SL  = $HTTP_POST_VARS["V_VTAHSL"];
  $V_VTAHT    = $HTTP_POST_VARS["V_VTAHT"];
  $V_VTAH_TL  = $HTTP_POST_VARS["V_VTAHTL"];

  $V_PRO1     = $HTTP_POST_VARS["V_PRO1"];
  $V_PRO1a    = $HTTP_POST_VARS["V_PRO1a"];
  $V_PRO1b    = $HTTP_POST_VARS["V_PRO1b"];
  $V_PRO1c    = $HTTP_POST_VARS["V_PRO1c"];
  $V_PRO1d    = $HTTP_POST_VARS["V_PRO1d"];
  $V_PRO1e    = $HTTP_POST_VARS["V_PRO1e"];
  $V_PRO1f    = $HTTP_POST_VARS["V_PRO1f"];
  $V_PRODAC   = $HTTP_POST_VARS["V_PRODAC"];
  $V_PRO2     = $HTTP_POST_VARS["V_PRO2"];
  $V_PRO3     = $HTTP_POST_VARS["V_PRO3"];
  $V_PRO5     = $HTTP_POST_VARS["V_PRO5"];
  $V_PRO5a    = $HTTP_POST_VARS["V_PRO5a"];
  $V_PRO6     = $HTTP_POST_VARS["V_PRO6"];
  $V_PRO7     = $HTTP_POST_VARS["V_PRO7"];
  $V_PRO9     = $HTTP_POST_VARS["V_PRO9"];
  $V_PRO9M    = $HTTP_POST_VARS["V_PRO9M"];
  $V_PRO9CU   = $HTTP_POST_VARS["V_PRO9CU"];
  $V_PRO9N    = $HTTP_POST_VARS["V_PRO9N"];
  $V_PROOM    = $HTTP_POST_VARS["V_PROOM"];
  $V_PROHM    = $HTTP_POST_VARS["V_PROHM"];
  $V_PROH_MC  = $HTTP_POST_VARS["V_PROHMC"];
  $V_PROHS    = $HTTP_POST_VARS["V_PROHS"];
  $V_PROH_SL  = $HTTP_POST_VARS["V_PROHSL"];
  $V_PROHT    = $HTTP_POST_VARS["V_PROHT"];
  $V_PROH_TL  = $HTTP_POST_VARS["V_PROHTL"];

  $MS_SQL     = "UPDATE datos SET usu='$V_USU1',VTA='$V_VTA1',pro='$V_PRO1' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='01'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU1a',VTA='$V_VTA1a',pro='$V_PRO1a' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='1a'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU1b',VTA='$V_VTA1b',pro='$V_PRO1b' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='1b'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU1c',VTA='$V_VTA1c',pro='$V_PRO1c' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='1c'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU1d',vta='$V_VTA1d',pro='$V_PRO1d' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='1d'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU1e',vta='$V_VTA1e',pro='$V_PRO1e' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='1e'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU1f',vta='$V_VTA1f',pro='$V_PRO1f' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='1f'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USUDAC',vta='$V_VTADAC',pro='$V_PRODAC' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='DAC'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU2',vta='$V_VTA2',pro='$V_PRO2' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='02'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU3',vta='$V_VTA3',pro='$V_PRO3' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='03'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU5',vta='$V_VTA5',pro='$V_PRO5' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='05'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU5a',vta='$V_VTA5a',pro='$V_PRO5a' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='5a'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU6',vta='$V_VTA6',pro='$V_PRO6' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='06'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU7',vta='$V_VTA7',pro='$V_PRO7' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='07'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU9',vta='$V_VTA9',pro='$V_PRO9' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='09'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU9M',vta='$V_VTA9M',pro='$V_PRO9M' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='9M'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU9CU',vta='$V_VTA9CU',pro='$V_PRO9CU' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='9CU'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USU9N',vta='$V_VTA9N',pro='$V_PRO9N' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='9N'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USUOM',vta='$V_VTAOM',pro='$V_PROOM' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='OM'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USUHM',vta='$V_VTAHM',pro='$V_PROHM' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='HM'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USUHMC',vta='$V_VTAHMC',pro='$V_PROHMC' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='HMC'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USUHS',vta='$V_VTAHS',pro='$V_PROHS' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='HS'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USUHSL',vta='$V_VTAHSL',pro='$V_PROHSL' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='HSL'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USUHT',vta='$V_VTAHT',pro='$V_PROHT' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='HT'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
  $MS_SQL     = "UPDATE datos SET usu='$V_USUHTL',vta='$V_VTAHTL',pro='$V_PROHTL' WHERE zona='$V_ZONA' AND mes='$V_MES' AND anio='$V_ANIO' AND edo='$V_EDO' AND tar='HTL'";
  $MS_RESULT  = MYSQL_QUERY($MS_SQL);
?>
